import request from '@/utils/request'

// 分页查询
export function listActivityParam(data) {
  return request({
    url: '/admin/activitypParam/page',
    method: 'put',
    data
  })
}

// 新增
export function addActivityParam(data) {
  return request({
    url: '/admin/activitypParam/add',
    method: 'POST',
    data
  })
}

// 修改
export function updateActivityParam(data) {
  return request({
    url: '/admin/activitypParam/update',
    method: 'PUT',
    data
  })
}

// 删除
export function deleteActivityParam(id) {
  return request({
    url: `/admin/activitypParam/delete/${id}`,
    method: 'delete'
  })
}

export function updateParamStatus(id, status) {
  return request({
    url: `/admin/activitypParam/active/${id}/${status}`,
    method: 'post'
  })
}

